package com.hyh.mode.decker;

import com.hyh.mode.quack.Quackable;

public class QuackCounter implements Quackable {

	private Quackable quackable;
	private static int count=0;
	
	public QuackCounter(Quackable quackable) {
		this.quackable = quackable;
	}
	
	@Override
	public void quack() {
		count++;
		quackable.quack();
	}
	
	public static int getCount(){
		return count;
	}
}
